﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hg_diff.aspx.cs" Inherits="btnet.pages.hg_diff" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>hg diff <% Response.Write(HttpUtility.HtmlEncode(path));%></title>
<link rel="StyleSheet" href="~/scripts/css/btnet.css" type="text/css">
</head>
<body>
<p>
<span class=diffadd style="border: 1px solid black;">&nbsp;&nbsp;&nbsp;&nbsp;</span> = added,&nbsp;
<span class=diffdel style="border: 1px solid black;">&nbsp;&nbsp;&nbsp;&nbsp;</span> = deleted,&nbsp;
<span class=diffchg style="border: 1px solid black;">&nbsp;&nbsp;&nbsp;&nbsp;</span> = changed,&nbsp;

<table border=0 width=100%><tr>

<td valign=top width=50%>
<div style="overflow-x: auto; border: 1px solid gray;  padding: 4px;  margin: 3px">
<pre>
<div class=difftitle><% Response.Write(left_title); %></div>
<% Response.Write(left_out); %>
</pre>
</div>

<td>&nbsp;&nbsp;

<td valign=top width=50%>
<div style="overflow-x: auto; border: 1px solid gray; padding: 4px; margin: 3px;">
<pre>
<div class=difftitle><% Response.Write(right_title); %></div>
<% Response.Write(right_out); %>
</pre>
</div>

</table>

<p>
<script>
function show_raw_diff()
{
	el = document.getElementById("raw_diff");
	el.style.display = "block"
}
</script>

<a href="javascript: show_raw_diff()">show raw unified diff text</a>
<pre id="raw_diff" style="display:none;">
<% Response.Write(HttpUtility.HtmlEncode(unified_diff_text)); %>
</pre>

</body>
</html>
